package cn.store.dao;

import cn.store.domain.User;

import java.sql.SQLException;
import java.util.List;
import java.util.Map;

public interface UserDao {

	void userRegist(User user)throws SQLException;


	void updateUser(User user)throws SQLException;

	User userLogin(User user)throws SQLException;

	User userRegistcheck(String username)throws SQLException;
    List<User> findUsersWithPage(Map<String, Object> searchWords, int startIndex, int pageSize) throws SQLException;

	int findTotalRecords(Map<String, Object> searchWords) throws SQLException;

	User findUserById(String id) throws SQLException;

	int deleteUser(String uid) throws SQLException;
}
